package cn.myjerry.collection2;

import java.util.List;
import java.util.ArrayList;

public class Test01 {
	public static void main(String[] args) {
		Employee e = new Employee(1001, "Jerry", 4000, "前端", "2017-04");
		Employee e2 = new Employee(1002, "靳珍珍", 4000, "会计", "2017-05");
		Employee e3 = new Employee(1003, "Tom", 4000, "ISO", "2017-06");
		
		List<Employee> list = new ArrayList<Employee>();
		
		list.add(e);
		list.add(e2);
		list.add(e3);
		
		print(list);
		
	}
	
	public static void print(List<Employee> list){
		for(int i=0;i<list.size();i++){
			System.out.println(list.get(i).getHireDate());
		}
	}
}
